package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cpf
 *
 */
@TableName("common_code")
@ApiModel(value = "CommonCode对象", description = "")
public class CommonCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("编码值")
    private String code;

    @ApiModelProperty("编码名称")
    private String codeName;

    @ApiModelProperty("字典类型")
    private String codeFlag;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("编码状态")
    private String status;

    @ApiModelProperty("删除标记 0：正常，1：删除")
    private String deleteFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public Integer getId() {
       return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getCode() {
       return code;
    }


    public void setCode(String code) {
        this.code = code;
    }


    public String getCodeName() {
       return codeName;
    }


    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }


    public String getCodeFlag() {
       return codeFlag;
    }


    public void setCodeFlag(String codeFlag) {
        this.codeFlag = codeFlag;
    }


    public String getRemark() {
       return remark;
    }


    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getStatus() {
       return status;
    }


    public void setStatus(String status) {
        this.status = status;
    }


    public String getDeleteFlag() {
       return deleteFlag;
    }


    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }


    public Date getCreateTime() {
       return createTime;
    }


    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getUpdateTime() {
       return updateTime;
    }


    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }



    @Override
    public String toString() {
        return "CommonCode{" +
        "id=" + id +
        ", code=" + code +
        ", codeName=" + codeName +
        ", codeFlag=" + codeFlag +
        ", remark=" + remark +
        ", status=" + status +
        ", deleteFlag=" + deleteFlag +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
